package com.aligotec.lototron;

import java.util.Properties;

import com.aligotec.lototron.db.DataBase;
import com.aligotec.lototron.ui.MainFrame;

public class Main {
	private static DataBase db = null;
	private static Properties ps = new Properties();
	
	public static String getProp(String key){
		String res = ps.getProperty(key);
		if(res == null) res = "not_found";
		return res;
	}
	
	public static DataBase getDB(){
		if(db == null){
			try {
				db = new DataBase();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return db;
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new MainFrame();
	}
}
